﻿using System;

namespace FrameWork.Core.ThreadPool
{
    public class CountChangedArgs : EventArgs
    {
        #region ___字段___
        /// <summary>
        /// 当前任务池中的任务数（等待执行的）
        /// </summary>
        public int TaskCount { get; }
        /// <summary>
        /// 当前线程池中的线程数
        /// </summary>
        public int ThreadCount { get; set; }
        /// <summary>
        /// 当前已经完成的任务数
        /// </summary>
        public int CompletedCount { get; set; }
        #endregion

        #region ___构造函数___
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="taskCount"></param>
        /// <param name="threadCount"></param>
        /// <param name="completedCount"></param>
        public CountChangedArgs(int taskCount, int threadCount, int completedCount)
        {
            this.TaskCount = taskCount;
            this.ThreadCount = threadCount;
            this.CompletedCount = completedCount;
        }
        #endregion
    }
}
